package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum CertificationStatus {

    certificationStatus_01(101, "待认证"),
    certificationStatus_02(102, "待审核"),
    certificationStatus_03(103, "已认证"),
    certificationStatus_04(104, "未通过");


    private Integer certificationStatus;
    private String certificationStatusName;


    public static String getCertificationStatusValue(int index) {
        for (CertificationStatus value : CertificationStatus.values()) {
            if (value.getCertificationStatus() == index) {
                return value.getCertificationStatusName();
            }
        }
        return null;
    }
}
